/* 排行榜页面样式 */

/* 页面容器 */
.charts-container {
    padding: 30px;
    max-width: 1600px;
    margin: 0 auto;
}

/* 页面标题 */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.page-header p {
    font-size: 16px;
    color: #b3b3b3;
}

/* 排行榜导航 */
.charts-navigator {
    margin-bottom: 40px;
}

.charts-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.chart-tab {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-tab:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chart-tab.active {
    background-color: white;
    color: #121212;
}

/* 排行榜板块 */
.chart-section {
    margin-bottom: 60px;
    background-color: rgba(24, 24, 24, 0.6);
    border-radius: 8px;
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.chart-description {
    font-size: 14px;
    color: #b3b3b3;
}

.view-all-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.view-all-btn:hover {
    border-color: white;
    transform: scale(1.05);
}

.chart-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.chart-cover {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.chart-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.chart-play-btn {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.chart-play-btn .large-play-btn {
    background-color: #1DB954;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.chart-play-btn .large-play-btn:hover {
    transform: scale(1.05);
    background-color: #1ed760;
}

.chart-tracklist {
    display: flex;
    flex-direction: column;
}

.track-item {
    display: grid;
    grid-template-columns: 40px 1fr 80px 60px 80px;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-rank {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.track-info {
    margin-right: 16px;
}

.track-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-stats {
    display: flex;
    align-items: center;
}

.track-trend {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.track-trend.up {
    color: #1DB954;
}

.track-trend.down {
    color: #FF4136;
}

.track-trend.same {
    color: #b3b3b3;
}

.track-trend.new {
    color: #1DB954;
    font-weight: bold;
}

.track-trend i {
    margin-right: 4px;
    font-size: 12px;
}

.track-duration {
    font-size: 14px;
    color: #b3b3b3;
    text-align: center;
}

.track-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.track-like-btn, .track-more-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.track-like-btn:hover, .track-more-btn:hover {
    color: white;
}

/* 更多排行榜 */
.other-charts {
    margin-bottom: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.chart-card {
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
}

.chart-card-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.chart-card-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: all 0.3s ease;
}

.chart-card:hover .chart-card-img img {
    filter: brightness(0.7);
}

.chart-card-img .play-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background-color: #1DB954;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.chart-card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.chart-card p {
    font-size: 14px;
    color: #b3b3b3;
}

/* 历史榜单 */
.historical-charts {
    margin-bottom: 60px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.date-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.date-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.current-date {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.historical-list {
    background-color: rgba(24, 24, 24, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.historical-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.historical-item:last-child {
    border-bottom: none;
}

.historical-date {
    width: 120px;
    font-size: 14px;
    color: #b3b3b3;
}

.historical-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.view-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.view-btn:hover {
    border-color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .chart-content {
        grid-template-columns: 1fr;
    }
    
    .chart-cover {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .chart-tracklist {
        margin-top: 16px;
    }
    
    .charts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .charts-container {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .track-item {
        grid-template-columns: 40px 1fr auto;
    }
    
    .track-stats, .track-duration {
        display: none;
    }
    
    .charts-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .historical-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .historical-date {
        width: 100%;
    }
    
    .view-btn {
        align-self: flex-start;
    }
} 